package cinema.v1_5.model;

public class Hall {
    private String id;
    private String name;
    private int rows;
    private int cols;

    public Hall(String id, String name, int rows, int cols) {
        this.id = id; this.name = name; this.rows = rows; this.cols = cols;
    }

    public String getId()   { return id; }
    public String getName() { return name; }
    public int getRows()    { return rows; }
    public int getCols()    { return cols; }
    public int seatCount()  { return rows * cols; }

    @Override
    public String toString() {
        return name + " | " + rows + "排" + cols + "列 | 共" + seatCount() + "座";
    }
}